/**
 * 七牛云上传文件
 * 需开通七牛云服务，并且有专门的域名才可生效。没有请使用common
 */
module.exports = {
	getUploadFileOptions: {
		text: '获取文件上传到七牛云的参数',
		nologin: 2,
		space: 'common',
		name: 'qiniu',
		detail: 'getUploadFileOptions',
		params: {
			cloudPath: '文件路径', 
		},
		return: {
			"expTime": 1743397159,
			"cloudPath": "8bc70a2c9a70fa37c48ab0188a7c454d-common-all.vnd.ms-excel",
			"fileID": "qiniu://8bc70a2c9a70fa37c48ab0188a7c454d-common-all.vnd.ms-excel",
			"fileURL": "https://qiniu.capfer.cn/8bc70a2c9a70fa37c48ab0188a7c454d-common-all.vnd.ms-excel",
			"uploadFileOptions": {
				"url": "https://upload.qiniup.com",
				"name": "file",
				"formData": {
					"token": "IAM-mImo6xJOEZI3DaXmVCoOKHhmQqGE6ihC-bXfXcPT:3DepaWWL0SR-2728lFJlFFwJlkY=:eyJzY29wZSI6ImRjLXFpbml1LWFsaXl1bi1tcC0xYjE5ZjgzMS0wZWMwLTRiYWUtYTQwNy00MjhkOGQ4MTlmZjUtMmYyOjhiYzcwYTJjOWE3MGZhMzdjNDhhYjAxODhhN2M0NTRkLWNvbW1vbi1hbGwudm5kLm1zLWV4Y2VsIiwiZm9yY2VTYXZlS2V5Ijp0cnVlLCJzYXZlS2V5IjoiOGJjNzBhMmM5YTcwZmEzN2M0OGFiMDE4OGE3YzQ1NGQtY29tbW9uLWFsbC52bmQubXMtZXhjZWwiLCJkZWFkbGluZSI6MTc0MzM5NzE1OSwiaW5zZXJ0T25seSI6MSwiZnNpemVNaW4iOjAsImZzaXplTGltaXQiOjEwOTk1MTE2Mjc3NzYsInJldHVybkJvZHkiOiJ7XCJrZXlcIjpcIiQoa2V5KVwiLFwiaGFzaFwiOlwiJChldGFnKVwiLFwibmFtZVwiOlwiJChmbmFtZSlcIixcInNpemVcIjpcIiQoZnNpemUpXCIsXCJ3aWR0aFwiOlwiJChpbWFnZUluZm8ud2lkdGgpXCIsXCJoZWlnaHRcIjpcIiQoaW1hZ2VJbmZvLmhlaWdodClcIixcImZvcm1hdFwiOlwiJChpbWFnZUluZm8uZm9ybWF0KVwifSJ9",
					"key": "8bc70a2c9a70fa37c48ab0188a7c454d-common-all.vnd.ms-excel"
				}
			}
		}
	},
	
	setFilePrivate: {
		text: '设置文件为私有权限',	
		nologin: 2,
		space: 'common',
		name: 'qiniu',
		detail: 'setFilePrivate',
		params: {
			fileID: '私有文件id',
			isPrivate: '是否私有', // 布尔值
		},
		return: {},
	},
	
	getTempFileURL: {
		text: '获取临时下载链接',	
		nologin: 2,
		space: 'common',
		name: 'qiniu',
		detail: 'getTempFileURL',
		params: {
			fileList: '文件id列表',
		},
		return: {},
	}
}